package com.tfjybj.itoo.exam.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.List;

/**
 * QuestionClassifyModel
 * 试题分类表
 *
 * @author 李青松
 * @version 2.0.0
 * @since 2.0.0 2018-11-01 08:55:53
 */
@ApiModel(value = "QuestionClassifyModel:试题分类表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class QuestionClassifyModel implements Serializable {

    //region 模板逆向生产来自QuestionClassifyEntity的属性
    /**
     * id
     */
    @ApiModelProperty(value = "questionClassify主键")
    @Column(name = "id")
    private String id;
    /**
     * 父试题分类id
     */
    @ApiModelProperty(value = "父试题分类id")
    private String parentId;

    /**
     * 课程id
     */
    @ApiModelProperty(value = "课程id")
    private String courseId;

    /**
     * 分类名
     */
    @ApiModelProperty(value = "分类名", required = true)
    private String name;

    /**
     * 该分类下试题数量
     */
    @ApiModelProperty(value = "该分类下试题数量", example = "0")
    private Integer questionCount;

    /**
     * 该分类等级
     */
    @ApiModelProperty(value = "该分类等级", example = "0")
    private Integer level;

    //endregion

    /* *****************************以下是非模板生成的内容************************************ */


    /**
     * 该分类下的子分类
     */
    private List<QuestionClassifyModel> questionClassifyModel;


    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人")
    private String operator;


}
